package com.cn.web.org.service;

import com.cn.org.OrgDO;
import com.cn.page.PageVo;
import com.cn.web.org.vo.OrgEditDTO;
import com.cn.web.org.vo.OrgSearch;
import com.cn.web.org.vo.OrgVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * description: OrgService <br>
 * date: 21.12.16 14:56 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
public interface OrgService {

    void add(OrgEditDTO edit);

    OrgDO findId(String id);

    OrgEditDTO find(String id, Boolean flag);

    OrgDO findByParent(String parentNo);

    PageInfo<OrgVO> page(PageVo<OrgSearch> pageVo);

    List<OrgVO> list(OrgSearch search);

    List<OrgVO> listAllOrg(OrgSearch search);

    void del(String id);

    List<OrgDO> listUnitByUserId(String userId);

    Object packProcessUnitAndUserV2();

    List<Object> packProcessUnitAndUser(int type);

}
